package com.leoman.dao;

import com.leoman.entity.CompanyAuth;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

/**
 * 企业认证信息
 * Created by Administrator on 2016/10/18 0018 下午 3:01.
 */
public interface CompanyAuthDao extends JpaRepository<CompanyAuth, Integer>, JpaSpecificationExecutor<CompanyAuth> {

    @Query("select a from CompanyAuth a where a.companyUser.id = ?1")
    CompanyAuth findOneByCompanyUserId(Integer companyUserId);
}